package com.wkbb.sports.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 考勤签到率
 */
@Data
public class SchoolAttendRateDto implements Serializable {

    private Double elementarySchoolRate;
    private Double juniorHighSchoolRate;
    private Double seniorHighSchoolRate;

    public void format() {
        if (elementarySchoolRate == null) elementarySchoolRate = 1.0;
        if (juniorHighSchoolRate == null) juniorHighSchoolRate = 1.0;
        if (seniorHighSchoolRate == null) seniorHighSchoolRate = 1.0;
    }
}